<html>
<head><meta charset="utf-8"><title>Platform-specific ABIs are not validated · t-compiler · Zulip Chat Archive</title></head>
<h2>Stream: <a href="https://rust-lang.github.io/zulip_archive/stream/131828-t-compiler/index.html">t-compiler</a></h2>
<h3>Topic: <a href="https://rust-lang.github.io/zulip_archive/stream/131828-t-compiler/topic/Platform-specific.20ABIs.20are.20not.20validated.html">Platform-specific ABIs are not validated</a></h3>

<hr>

<base href="https://rust-lang.zulipchat.com">

<head><link href="https://rust-lang.github.io/zulip_archive/style.css" rel="stylesheet"></head>

<a name="223960694"></a>
<h4><a href="https://rust-lang.zulipchat.com#narrow/stream/131828-t-compiler/topic/Platform-specific%20ABIs%20are%20not%20validated/near/223960694" class="zl"><img src="https://rust-lang.github.io/zulip_archive/assets/img/zulip.svg" alt="view this post on Zulip" style="width:20px;height:20px;"></a> Jonas Schievink  [he/him] <a href="https://rust-lang.github.io/zulip_archive/stream/131828-t-compiler/topic/Platform-specific.20ABIs.20are.20not.20validated.html#223960694">(Jan 25 2021 at 21:10)</a>:</h4>
<p>Is it expected that something like this is accepted when building for x86_64-unknown-linux-gnu?</p>
<div class="codehilite" data-code-language="Rust"><pre><span></span><code><span class="k">extern</span><span class="w"> </span><span class="s">"aapcs"</span><span class="w"> </span><span class="k">fn</span> <span class="nf">f</span><span class="p">()</span><span class="w"> </span><span class="p">{}</span><span class="w"></span>

<span class="k">fn</span> <span class="nf">main</span><span class="p">()</span><span class="w"> </span><span class="p">{</span><span class="w"></span>
<span class="w">    </span><span class="n">f</span><span class="p">();</span><span class="w"></span>
<span class="p">}</span><span class="w"></span>
</code></pre></div>
<p>Other non-x86 ABIs are also accepted without complaint. I've filed <a href="https://github.com/rust-lang/rust/issues/81396">#81396</a> for now, but I expected this to be a known issue already since it's so easy to hit.</p>



<a name="223961210"></a>
<h4><a href="https://rust-lang.zulipchat.com#narrow/stream/131828-t-compiler/topic/Platform-specific%20ABIs%20are%20not%20validated/near/223961210" class="zl"><img src="https://rust-lang.github.io/zulip_archive/assets/img/zulip.svg" alt="view this post on Zulip" style="width:20px;height:20px;"></a> simulacrum <a href="https://rust-lang.github.io/zulip_archive/stream/131828-t-compiler/topic/Platform-specific.20ABIs.20are.20not.20validated.html#223961210">(Jan 25 2021 at 21:14)</a>:</h4>
<p>I don't think we have an issue, but it is not expected by me :)</p>



<hr><p>Last updated: Aug 07 2021 at 22:04 UTC</p>
</html>